package com.cgy.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//系别表
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity//表示实体
@Table(name = "xibie")
public class Xibie { 
	@Id//表示数据表中的主键 
	@GeneratedValue(strategy = GenerationType.IDENTITY)//设置主键自增 
		private Integer xid;
		private String xname;
		@Column(name = "x_remark",unique = true)
		private String xRemark;//备注
}
